package com.boyu.front.index;

import com.boyu.common.BaseController;
import com.boyu.common.model.Article;

import java.util.List;

import static com.boyu.front.ArticleController.INDEX_ROLL_IMAGE_OPTION_ID;
import static com.boyu.front.ArticleController.OPTION_ID;

/**
 * IndexController
 */
public class IndexController extends BaseController {
	public void index() {
		List<Article> newsList = articleService.getTitleList(1);
		List<Article> vedioList = articleService.getTitleList(2);
		List<Article> clubList = articleService.getTitleList(13);
		setAttr("newsList",newsList);
		setAttr("vedioList",vedioList);
		setAttr("clubList",clubList);
		setAttr(OPTION_ID, INDEX_ROLL_IMAGE_OPTION_ID);
		render("index.html");
	}
}





